<template>
  <div class="fixed-letter">
    <div class="letter" v-for="(item, $index) in value" :key="$index" @click="$emit('change',item.letter)">{{item.letter}}</div>
  </div>
</template>

<script>
export default {
  name: 'letter-field',
  props: {
    value: {
      type: Array,
      default: () => {
        return [];
      }
    }
  }
};
</script>
<style lang="stylus" scoped>
.fixed-letter {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-item: center;
  justify-content: center;
  font-size: 28px;
  right: 30px;
  height: 100%;
  margin-top: 80px;

  .letter {
    text-align: center;
    margin-top: 4px;
    margin-bottom: 4px;
  }
}
</style>
